Dynomotion

Group: DynoMotion Message: 9347 From: tapiolarikka Date: 3/22/2014
Subject: Vb.net example
Hi Tom;

I've been looking at the vb.net example. How do I get access to the axis tuning parameters?
I have "_Controller.GetAxis(0,"XAxis")" but how do I get further? for example "XAxis.deadbandgain"
If I declare XAxis as KM_Axis I get the parameters visible but runnig the app throws exception:

Rgds,
Tapio
Group: DynoMotion Message: 9349 From: Tom Kerekes Date: 3/23/2014
Subject: Re: Vb.net example
Hi Tapio,

I don't know.  What is your code exactly?

Are you doing something like?

        Dim axis As KM_Axis
        Dim D As Double
        axis = _Controller.GetAxis(0, "X")
        D = axis.TuningParams().DeadBandGain


Regards
TK


Group: DynoMotion Message: 9350 From: Tom Kerekes Date: 3/23/2014
Subject: Re: Vb.net example
Hi Tapio,

I don't know.  What is your code exactly?

Are you doing something like?

        Dim axis As KM_Axis
        Dim D As Double
        axis = _Controller.GetAxis(0, "X")
        D = axis.TuningParams().DeadBandGain


Regards
TK


Group: DynoMotion Message: 9353 From: Tapio Larikka Date: 3/23/2014
Subject: Re: Vb.net example

Hi Tom,
I got the tuning parameters now working(or at least it builds without errors), naturally after asking the question so my appologies for wasting your time :).
 
It appears the the Dynomotion vb.net example is a 3 axis coordinate system since the enabled, commanded etc properties(?) are not visible under the _Contoller object as they are for the x,y&z axes. How are these parameters for axes a,b&c accessed?  
 
Rgds,
Tapio
 
 
----- Original Message -----
Sent: Sunday, March 23, 2014 1:49 PM
Subject: Re: [DynoMotion] Vb.net example

 

Hi Tapio,

I don't know.  What is your code exactly?

Are you doing something like?

        Dim axis As KM_Axis
        Dim D As Double
        axis = _Controller.GetAxis(0, "X")
        D = axis.TuningParams().DeadBandGain


Regards
TK


Group: DynoMotion Message: 9354 From: Tom Kerekes Date: 3/23/2014
Subject: Re: Vb.net example
Hi Tapio,

I'm not sure I understand the question.  But yes the Dynomotion vb.NET example is just a simple xyz 3 axis example GUI that assumes KFLOP axes 0,1,2 correspond to xyz.  If you want more axes you would need to expand it.

Regards
TK

Group: DynoMotion Message: 9357 From: Tapio Larikka Date: 3/24/2014
Subject: Re: Vb.net example
Attachments :

Hi Tom,
I mean How do I add axes a,b&c to the list pointed by the arrow in attached .png? Also where is the angular/linear decision for the axis made?
 
Rgds,
Tapio
 
----- Original Message -----
Sent: Monday, March 24, 2014 1:22 AM
Subject: Re: [DynoMotion] Vb.net example

 

Hi Tapio,

I'm not sure I understand the question.  But yes the Dynomotion vb.NET example is just a simple xyz 3 axis example GUI that assumes KFLOP axes 0,1,2 correspond to xyz.  If you want more axes you would need to expand it.

Regards
TK

Group: DynoMotion Message: 9359 From: Tom Kerekes Date: 3/24/2014
Subject: Re: Vb.net example [1 Attachment]
Hi Tapio,

I can't find an arrow in your .png.  But those functions and variables are part of the example that is only written to do xyz.  To make an example to also do abc you would need to duplicate and modify all the functions and GUI items in the example.  For example copy the code for enabling KFLOP axis 0 for X:

    Private Sub SetXEnabled(ByVal value As Boolean)
        If value = True Then
            WriteLineException("EnableAxis0")
        Else
            WriteLineException("DisableAxis0")
        End If
    End Sub

and make a new routine for enabling axis 3 for A like:

    Private Sub SetAEnabled(ByVal value As Boolean)
        If value = True Then
            WriteLineException("EnableAxis3")
        Else
            WriteLineException("DisableAxis3")
        End If
    End Sub


The degrees mode for Axis A can be selected in the MotionParams as:

        _Controller.CoordMotion.MotionParams.DegreesA = True


Regards
TK